<?php
namespace Resmodel;

use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Predicate\Like;
use Zend\Db\Sql\Predicate\Operator;
use Zend\Db\Sql\Select;
use Zend\InputFilter\InputFilter;

class UnitLangTable extends ResAbstractTable
{



    /**
     * @param $id
     * @return UnitLang
     */
    public function getUnitLang($id){
       return $this->getById($id);
    }

   

    /**
     * @return InputFilter
     */
    public function getInputFilter()
    {
        $filter = new InputFilter();
        return $filter;
    }

    /**
     * @param $id
     * @param $lang
     * @return UnitLang
     */
    public function getByUnitAndLang($id, $lang)
    {
        return $this->getTableGateway()->select(array('unit_id'=>$id, 'lang'=>$lang))->current();
    }


}